<script setup>
import { reactive, provide } from 'vue'
import Child from "./components/Child.vue";
const car = reactive({name: '奥迪A4L', price: '40W'})
provide('car', car)  // 给自己的后代传递数据
</script>

<template>
    <img alt="Vue logo" src="./assets/logo.png" />
    <h1 @click="car.name='奥迪A4L';car.price='40W'">我是祖先 ， {{car}}</h1>
    <Child />
</template>
